﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GUIL
{
    public partial class MainMenuGUI : Form
    {
        readonly RemoteService.Cinema _selectedCinema;

        public MainMenuGUI(RemoteService.Cinema selectedCinema)
        {
            InitializeComponent();
            _selectedCinema = selectedCinema;
            this.Text = "Main menu - " + _selectedCinema.Name + " " + _selectedCinema.Location;
        }

        private void pictureBoxBooking_Click(object sender, EventArgs e)
        {
            BookingGUI bookingGUI = new BookingGUI(_selectedCinema);
            bookingGUI.Visible = true;
        }

        private void pictureBoxMovies_Click(object sender, EventArgs e)
        {
            MovieGUI movieGUI = new MovieGUI(_selectedCinema);
            movieGUI.Visible = true;
        }

        private void pictureBoxScreenCasts_Click(object sender, EventArgs e)
        {
            ScreenCastGUI screenCastGUI = new ScreenCastGUI(null, _selectedCinema);
            screenCastGUI.Visible = true;
        }
    }
}
